package com.cos.lession49.dao;

import com.cos.lession49.entity.Emp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: COS
 * @time: 2022/3/2 9:03
 * @description:
 */
public interface EmpDao {

    List<Emp> getAll();
    /**
     *
     * @author: COS
     * @return:
     * @time: 2022/3/2 9:22
     * @description:
     * 字符串 包装类 基础数据
     */
    Emp getEmpByEname(@Param("ename") String ename);

    int addEmp(Emp e);

    List<Emp> getEmpWithdept();

}
